package com.ddm.vo.vxVo;

import com.ddm.enumeration.AnnouncementType;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

@Data
public class AnnouncementVO {

    @ApiModelProperty(value = "id")
    private Long id;

    @ApiModelProperty(value = "公告名称")
    private String name;

    @ApiModelProperty(value = "开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime beginTime;

    @ApiModelProperty(value = "结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime endTime;

    @ApiModelProperty(value = "公告内容")
    private String content;

    @ApiModelProperty(value = "图片url")
    private String image;

    @ApiModelProperty(value = "公告类型：0为竞赛，1为培训，2为活动，3为其他")
    private Integer type;

} 